# Uncomment the next line to define a global platform for your project
 platform :ios, '8.0'


use_frameworks!
target 'AzaanSwift' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  
  
  
  # Pods for AzaanSwift
  pod 'SnapKit'           # 布局框架 https://github.com/SnapKit/SnapKit，同 Masonry
  pod 'Kingfisher'       # 缓存图片 https://github.com/onevcat/Kingfisher，同 SDWebImage
#  pod 'Alamofire'         # 数据请求 https://github.com/Alamofire/Alamofire，同 AFNetworking
#  pod 'SwiftyJSON'        # json 解析 https://github.com/SwiftyJSON/SwiftyJSON
  pod 'IBAnimatable'                  # 设计原型，自定义 UI，交互，导航，转场和动画 https://github.com/IBAnimatable/IBAnimatable
  pod 'RxSwift'           # 响应式编程框架 https://github.com/ReactiveX/RxSwift
  pod 'RxCocoa'          # 响应式编程框架 https://github.com/ReactiveX/RxSwift
  pod 'SVProgressHUD'     # 提示功能 https://github.com/SVProgressHUD/SVProgressHUD
  pod 'MJRefresh'                     # 上拉和下拉刷新框架 https://github.com/CoderMJLee/MJRefresh
#  pod 'BMPlayer'                      # 视频播放框架 https://github.com/BrikerMan/BMPlayer
#  pod 'LeanCloud'        # 云存储功能，可作为后台，模拟登录 https://leancloud.cn/docs/sdk_down.html
#  pod 'SwiftTheme'                    # 主题替换方案 https://github.com/jiecao-fm/SwiftTheme
#  pod 'ObjectMapper'                  # 是一个使用 Swift 语言编写的数据模型转换框架
  pod 'SwiftyUserDefaults'            #对NSUserDefaults的封装，让NSUserDefaults使用更简
  pod 'Moya'
  pod 'Moya/RxSwift'
  pod 'RxDataSources'
  pod 'Then'
#  pod 'SwiftDate'     #时间的处理
#  pod 'ScrollPageView', '~> 0.1.4'
  pod 'NVActivityIndicatorView'     #很多漂亮的加载指示器
  pod 'HandyJSON'
  
end

  
  post_install do |installer|
      # 需要指定编译版本的第三方的名称
      myTargets = ['HandyJSON', 'NVActivityIndicatorView','IBAnimatable','SwiftyUserDefaults','ScrollPageView','Then','RxCocoa','RxSwift','RxDataSources']

      installer.pods_project.targets.each do |target|
          if myTargets.include? target.name
              target.build_configurations.each do |config|
                  config.build_settings['SWIFT_VERSION'] = '3.2'
              end
          end
      end
  end



## Swift 版本声明
#post_install do |installer|
#    installer.pods_project.targets.each do |target|
#        if ['SnapKit','Moya'].include? target.name
#            target.build_configurations.each do |config|
#                config.build_settings['SWIFT_VERSION'] = '4.0'
#                config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
#            end
#            else
#            target.build_configurations.each do |config|
#                config.build_settings['SWIFT_VERSION'] = '3.2'
#                config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
#            end
#        end
#    end
#end

